<?php 
$this->placeholder("formHeadline")->set($this->GetTranslation("Create a Page"));
?>
<fieldset>
	<legend><?php echo $this->GetTranslation('Create Page');?></legend>
	<form action='/admin/page/new' method="POST">
	<p><?php echo $this->GetTranslation('To create a new page...');?></p>
	<h3><?php echo $this->GetTranslation("Step 1:Select the parent section");?></h3>
	<?php 
	echo $this->FormRow(
		$this->GetTranslation('Parent Page'), 
		$this->SelectParentPage('parent_id', 
		$this->pageParentId) . 	$this->formButton("step1",$this->GetTranslation("Next >>"), array('class' => 'inlineButton')));
	?>
	<div id="step2"></div>
	<div id="step3"></div>
	</form>
</fieldset>
<script type="text/javascript">
$(document).ready(function() {
	$("#step1").click(function(){
		var parentId = $("#parent_id").val();
		$("#step2").load('/admin/page/select-content-template/parent_id/' + parentId);
		$("#step3").html('');
		return false;
	});  
});
</script>
